Skip to content

Let the AppKit window count settle before judging release - #29

Merged
bytetroll merged 1 commit into
masterfrom
appkit-window-settle
Nov 9, 2026
Merged

bytetroll merged 1 commit into
masterfrom
appkit-window-settle

Conversation

@bytetroll

Copy link
Copy Markdown
Contributor

The counts asked for in the last run answered the question: "to baseline 0 (listed 1, of those visible 0)". The window was closed, not leaked, and AppKit simply had not dropped it from the application's list yet. The same line carried the proof, because the fixture's own bootstrap window is created and closed before the baseline is taken and the baseline was 0 -- closed windows do leave the list, just not within the single run-loop turn the observer was giving them.

count() now lets the figure settle, bounded to fifty ten-millisecond turns and stopping as soon as it holds steady three times. A genuinely leaked window settles too and is still reported, so this waits for AppKit's bookkeeping without weakening what the assertion means. detail() reports the unsettled list, since its job is to say what was actually there.

The in-process input probe passes: text, toggle and click all arrive with the entry reading "Matrix", 41 checks, which is real keyboard input reaching each control and becoming a provider event on macOS.

The counts asked for in the last run answered the question: "to baseline
0 (listed 1, of those visible 0)". The window was closed, not leaked,
and AppKit simply had not dropped it from the application's list yet.
The same line carried the proof, because the fixture's own bootstrap
window is created and closed before the baseline is taken and the
baseline was 0 -- closed windows do leave the list, just not within the
single run-loop turn the observer was giving them.

count() now lets the figure settle, bounded to fifty ten-millisecond
turns and stopping as soon as it holds steady three times. A genuinely
leaked window settles too and is still reported, so this waits for
AppKit's bookkeeping without weakening what the assertion means.
detail() reports the unsettled list, since its job is to say what was
actually there.

The in-process input probe passes: text, toggle and click all arrive
with the entry reading "Matrix", 41 checks, which is real keyboard
input reaching each control and becoming a provider event on macOS.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bytetroll
bytetroll merged commit 8574692 into master Nov 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant